<template>
    <div>
       <div>
           姓名：<slot name="name"></slot>
       </div>
        <div>
            性别：<slot name="sex"></slot>
        </div>
        <div>
            年龄：<slot name="age">18</slot>
        </div>
    </div>
</template>

<script>
    export default {
        name: "slot-child",
        // props: ['msg', 'count'],
        props: {
            msg: String
        },
        data() {
            return {
                count: 0
            }
        },
        methods: {
            plusHandler(val) {
                this.count += val
            }
        }
    }
</script>

<style scoped>

</style>
